package StudyCode.summary.mycollection;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class MethodToCalculateMeanOfAnArray {
	public static double meanArray(double[] arr) {
		double out = 0.0;
		for (int i = 0; i < arr.length; i++)
			out += arr[i];
		return out / (1.0 * arr.length);
	}
}
